#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Author:    御风
# @Mail:      zhong.yufeng@foxmail.com
# @Time:      2022/4/12 1:30


from flask_cors import cross_origin
from utils.result import ApiResult
from utils.session.session import Session
from .admin import route


# http://127.0.0.1:9001/admin/logout
@route.route(r"/logout", methods=["GET"], strict_slashes=False)
@cross_origin()
def apiLogout():
    """
    管理登出处理
    """
    Session.set({ })
    return ApiResult.success(None, msg="成功")
